def is_dead(thing):
    return thing.hitpoints < 1

class Monster:
    def __init__(self):
        self.hitpoints = 10

class Player:
    def __init__(self):
        self.hitpoints = 10
        self.strength = 2
    def attack(self, monster):
        monster.hitpoints -= self.strength
